Skip to content

bpo-38059: Using sys.exit() over exit() in inspect.py#15666

Merged
zooba merged 2 commits into
python:masterfrom
alanyee:patch-2
Sep 9, 2019
Merged

bpo-38059: Using sys.exit() over exit() in inspect.py#15666
zooba merged 2 commits into
python:masterfrom
alanyee:patch-2

Conversation

@alanyee

@alanyee alanyee commented Sep 3, 2019

Copy link
Copy Markdown
Contributor

Constants added by the site module like exit() "should not be used in programs"
https://docs.python.org/3/library/constants.html#exit

https://bugs.python.org/issue38059

Constants added by the site module like exit() "should not be used in programs"

@brandtbucher brandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good!

I understand that the change is arguably trivial... but given that this is a code change in a commonly-used module, do you mind creating an issue and NEWS entry for it?

@alanyee alanyee changed the title Using sys.exit() over exit() in inspect.py bpo-38059: Using sys.exit() over exit() in inspect.py Sep 8, 2019
@zooba

zooba commented Sep 9, 2019

Copy link
Copy Markdown
Member

Thanks for the PR!

@zooba
zooba merged commit e3c59a7 into python:master Sep 9, 2019
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @alanyee for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2019
Constants added by the site module like exit() "should not be used in programs"
(cherry picked from commit e3c59a7)

Co-authored-by: Alan Yee <alanyee@users.noreply.github.com>
@bedevere-bot

Copy link
Copy Markdown

GH-15783 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2019
Constants added by the site module like exit() "should not be used in programs"
(cherry picked from commit e3c59a7)

Co-authored-by: Alan Yee <alanyee@users.noreply.github.com>
@bedevere-bot

Copy link
Copy Markdown

GH-15784 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Sep 9, 2019
Constants added by the site module like exit() "should not be used in programs"
(cherry picked from commit e3c59a7)

Co-authored-by: Alan Yee <alanyee@users.noreply.github.com>
miss-islington added a commit that referenced this pull request Sep 9, 2019
Constants added by the site module like exit() "should not be used in programs"
(cherry picked from commit e3c59a7)

Co-authored-by: Alan Yee <alanyee@users.noreply.github.com>
@alanyee
alanyee deleted the patch-2 branch October 17, 2019 18:04
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
Constants added by the site module like exit() "should not be used in programs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants